import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-07-27
 * Time: 20:08
 */
//模拟实现选择排序，堆排序
public class Test {
    public static void main(String[] args) {
        int[] arr={15,3,6,12,8,35,9,6,83,55};
        Sort.selectSort(arr);
        System.out.println("选择排序："+Arrays.toString(arr));
        int[] brr={15,3,6,12,8,35,9,6,83,55};
        Sort.heapSort(brr);
        System.out.println("堆排序："+Arrays.toString(brr));
    }
}
